import { request } from "@/utils/service"
import type * as Agency from "./types/agency"
/** 增 */
export function createAgencyDataApi(data: Agency.IAgencyRequestData) {
  return request({
    url: "retail/user/add",
    method: "post",
    data
  })
}

/** 删 */
export function deleteAgencyDataApi(id: any) {
  return request({
    url: "retail/user/del",
    method: "delete",
    params: {
      id
    }
  })
}

// /** 改 */
export function updateAgencyDataApi(data: Agency.IAgencyRequestData) {
  return request({
    url: "retail/user/update",
    method: "put",
    data
  })
}

/** 查 */
export function getAgencyDataApi(params: any) {
  return request({
    url: "retail/user/query",
    method: "get",
    params
  })
}
